﻿using Microsoft.Practices.Unity;

namespace SimpleQueryTool
{
    public class Bootstrapper : Caliburn.Micro.Bootstrapper<SimpleQueryTool.ViewModels.ShellViewModel>
    {
    	private readonly IUnityContainer _container;

    	public Bootstrapper(IUnityContainer container)
		{
			_container = container;
		}

		protected override object GetInstance(System.Type service, string key)
		{
			return _container.Resolve(service, key);
		}
		protected override System.Collections.Generic.IEnumerable<object> GetAllInstances(System.Type service)
		{
			return _container.ResolveAll(service);
		}
    }
}
